package com.ziyun.pop.common.e.material;

import com.ziyun.pop.common.e.BaseEnum;

/**
 * 库存交易类型
 * 1.采购入库2.红冲3.盘存4.销售出库5.盘亏6.生产消耗7.调拨入库8.调拨出库9.数据迁移10.采购退货
 * @author 桂朝
 * @date 2018/10/05 14:10
 */
public enum StockMaterialIoTypeEnum implements BaseEnum {
    PUCHASE_IN(1, "采购入库"),
    COUNTERACT(2, "红冲"),
    TAKE_INVENTORY(3, "盘存"),
    SALES_OUT(4, "销售出库"),
    INVENTORY_LOSSES(5, "盘亏"),
    PRODUCTION(6, "生产消耗"),
    ALLOT_IN(7, "调拨入库"),
    ALLOT_OUT(8, "调拨出库"),
    DATA_TRANSFER(9, "数据迁移"),
    PUCHASE_RETURN(10, "采购退货");

    private int id;
    private String describe;

    StockMaterialIoTypeEnum(int id, String describe) {
        this.id = id;
        this.describe = describe;
    }

    @Override
    public int toInt() {
        return id;
    }

    @Override
    public String toCode() {
        return null;
    }

    @Override
    public String toDescribe() {
        return describe;
    }
}
